<?php
class CommentService extends Service {
    
    function __construct() {
        parent::__construct();
        $this->mDao = new CommentDao();
    }

    public function insertObject($obj){
        try {

            return $this->mDao->insertObject($obj);
        } catch (Exception $exc) {
            PageData::addModelError($exc->getMessage());
            throw new Exception($exc->getMessage());
        }
    }

    public function getList() {
        try {
            return $this->mDao->getList();
        } catch (Exception $exc) {
            PageData::addModelError($exc->getMessage());    
        }
    }
}